KumuluzEE
Tags : Java EE
Created 15/11-2017 by Michael Bornholdt Nielsen
Logging request and response in one place with JAX-RS
Created 28/07-2016 by Michael Bornholdt Nielsen
Best practice for REST token-based authentication with JAX-RS
Created 28/07-2016 by Michael Bornholdt Nielsen
Java EE - Producer Methods
Tags : Java EE
Created 06/01-2015 by Michael Bornholdt Nielsen
Java EE and MongoDB
Created 25/11-2014 by Michael Bornholdt Nielsen
How to get module name and application name in Java EE applications

Just works

 InitialContext initialContext = new InitialContext();
 String myModuleName = 
                     (String) initialContext.lookup("java:module/ModuleName");  
 String myApplicationName = 
                     (String) initialContext.lookup("java:app/AppName");  

Works sometime

 @Resource(lookup="java:module/ModuleName")  
 private String moduleName;

 @Resource(lookup="java:app/AppName")  
 private String applicationName;  

Tags : Java EE
Created 11/11-2014 by Michael Bornholdt Nielsen
How can i config module and application name for JNDI Lookups
Created 30/09-2014 by Michael Bornholdt Nielsen
first page - next page
About
This site is used as a place to dump my ideas, links and other stuff I normaly forget.

Made by Michael Bornholdt Nielsen => Jarry.dk